package com.itheima.filedemo;

import java.io.File;

public class FileDemo2 {
    public static void main(String[] args) {
        // 绝对路径
        File file1 = new File("D:\\IdeaProjects\\JavaStudyProject\\FileModule\\itheima\\a.txt");
        System.out.println(file1);
        // 相对路径
        File file2 = new File("a.txt");
        System.out.println(file2);

        File file3 = new File("FileModule\\a.txt");
        System.out.println(file3);

    }
}
